/*
循环数组，有一项则返回true,否则返回false(some)
*/
let arr = [
    {
        index:1,
        name:'张三',
        sec:'男'
    },
    {
        index:2,
        name:'李四',
        sec:'男'
    },
    {
        index:3,
        name:'王五',
        sec:'女'
    }
  ];
  let name='王五';
  let isBoolen = arr.some(v => v.name==name); 
  console.log('isBoolen',isBoolen)
  //isBoolen true
  name='帅哥';
  isBoolen = arr.some(v => v.name===name); 
  console.log('isBoolen',isBoolen)
 //isBoolen false